package com.suncaper.han_yi_system.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Builder;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 衣服款式实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("clothing_style")
public class ClothingStyle {

    /**
     * 款式id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 性别限制 (0:女, 1:男, 2:通用/不限, 具体可根据业务定义)
     */
    private Byte genderLimit;

    /**
     * 款式图片（存储路径或URL）
     */
    private String image;

    /**
     * 逻辑删除 (0:未删除, 1:已删除)
     */
    @TableLogic
    private Byte isDeleted;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;
}